package com.sl.au.entity;

import javax.persistence.*;

/**
 * 客户来访费用
 */
@Entity
@Table(name = "sl_crm_customerVisitingCost")
public class CustomerVisitingCost extends Root {
	/** 费用名称 */
	@Column(name = "sCostName", nullable = false)
	private String costName;
	
	/** 单价 */
	@Column(name = "sPrice")
	private String price;

	/** 数量 */
	@Column(name = "sAmount")
	private String amount;


	/**总价 */
	@Column(name = "sTotalPrice")
	private String totalPrice;

	@ManyToOne
    @JoinColumn(name="customerVisit_id")//加入一列作为外键
    private CustomerVisiting customerVisiting;

	public String getCostName() {
		return costName;
	}

	public void setCostName(String costName) {
		this.costName = costName;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	public String getAmount() {
		return amount;
	}

	public void setAmount(String amount) {
		this.amount = amount;
	}

	public String getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(String totalPrice) {
		this.totalPrice = totalPrice;
	}

	public CustomerVisiting getCustomerVisiting() {
		return customerVisiting;
	}

	public void setCustomerVisiting(CustomerVisiting customerVisiting) {
		this.customerVisiting = customerVisiting;
	}
	
    
}
